import React from 'react';
import Loadable from 'react-loadable';

const loadingComponnet=()=>{
    return(
        <div>
            正在加载中,请稍后
        </div>
    )
}

export default (loader,loading=loadingComponnet)=>{
    return Loadable({
        loader,
        loading
    })
}